Commit
c297d45b8a19d84e0 accidentally removed the
check for the right modifier mask, causing us to
always extend the selection.
gboolean have_selection;
gboolean is_touchscreen, extend_selection;
GdkDevice *source;
+ guint state;
sel_start = priv->selection_bound;
sel_end = priv->current_pos;
priv->select_words = FALSE;
priv->select_lines = FALSE;
- extend_selection = GDK_SHIFT_MASK;
+ state = gdk_event_get_modifier_state (event);
+
+ extend_selection = (state & GDK_SHIFT_MASK) != 0;
/* Always emit reset when preedit is shown */
priv->need_im_reset = TRUE;